Skip to content

fix(atlas-search): reconcile CLI help with source across all six binaries (#13278) - #13340

Merged
dezren39 merged 1 commit into
mainfrom
lane-xe-13278
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-xe-13278

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Fixes #13278 — all ten Atlas CLI help-vs-source disagreements from the book survey (#13251), reconciled on the help/source side, with the book chapters that recorded them updated in the same change (DOC-01).

What changed, by item:

  1. Version surfaces — atlas-stage gains clap version (atlas-stage 0.1.0); the four hand-rolled binaries (atlas-classify, atlas-eval, atlas-sweep, atlas-github-comments) gain --version / -V, exit 0.
  2. atlas-stage header — counts six verbs (not "Two verbs:"); the offline claim is scoped to five of six, with promote called out as needing the embedding model + ONNX runtime.
  3. ingest --language — help states the empty-value fallback to the staged file's extension.
  4. search --shards — hide = true removed; the EXPERIMENTAL doc now appears in --help.
  5. Real clap env — --config and --service-url now carry env = "ATLAS_SEARCH_SERVICE_CONFIG" / env = "ATLAS_SEARCH_URL" instead of hand-rolled env reads. Precedence (flag > env > default) is unchanged; the resolvers keep ignoring empty values, so a set-but-empty variable behaves exactly as before.
  6. atlas-classify defaults in help — the usage text gains a defaults line (window-days 90, actor atlas-classify/remainder-sweep, schema-version 1, reviewer-model atlas-classify, --now current time, max-decisions unbounded).
  7. Help paths — the four hand-rolled binaries print usage to stdout and exit 0 on --help / -h from any position. Error paths and exit codes unchanged (verified: bare/error invocations still exit 2/2/2/1).
  8. traces report — help names both written files and the report_file / markdown_file output keys.
  9. --via-service — help states the eligibility restrictions (Turso backend + production vector table; --shards served standalone without an attempt).
  10. feedback — help states the exactly-one-of --up / --down (or --get) rule.

Verification (laptop route — the fleet-build container has no working Rust path for this workspace, the #13159 gap family):

  • cargo test -p atlas-core -p atlas-search: 415 passed / 0 failed across 30 suites; -p atlas-embed -p atlas-proto: 16 passed / 0 failed. cargo fmt --check clean.
  • Built binaries probed directly: every new --help / --version surface exits 0 with the expected text; --shards and the new --via-service text render in search --help; serve --help shows the real [env: ATLAS_SEARCH_SERVICE_CONFIG=] binding; ATLAS_SEARCH_SERVICE_CONFIG alone directed atlas-search init to the env-named path.
  • nix build .#atlas-docs succeeds; rendered chapters carry the updated text.

Prove it works
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…ries (#13278)

The Atlas book survey (#13251) found ten disagreements between the
CLI help surfaces and the source. This change reconciles them on the
help/source side, and updates the book chapters that recorded the
disagreements in the same change (DOC-01):

- atlas-stage gains the version surface its command definition
  lacked (--version/-V now print atlas-stage 0.1.0, as atlas-search);
  its source header counts six verbs (not two) and scopes the
  offline claim to the five verbs it covers (promote needs the
  embedding model + ONNX runtime).
- atlas-stage ingest --language help states the empty-value
  fallback to the staged file's extension.
- search --shards is no longer hidden from --help; its EXPERIMENTAL
  doc comment now reaches the help output.
- --config and --service-url now carry real clap env bindings
  (ATLAS_SEARCH_SERVICE_CONFIG / ATLAS_SEARCH_URL) instead of
  hand-rolled env reads, matching --model/--vec-table/--shards.
  Resolution precedence is unchanged (flag > env > default); the
  resolvers keep ignoring empty values, so a set-but-empty variable
  behaves exactly as before.
- search --via-service help states the eligibility restrictions:
  Turso backend + production vector table only; --backend local or
  a non-default --vec-table fall back with a note; any --shards
  spec is served standalone without attempting the service.
- traces report help names both written files (report JSONL and
  the Markdown rendering, reported as report_file/markdown_file).
- feedback help states the vote-shape rule (exactly one of
  --up/--down, or --get to retrieve).
- The four hand-rolled binaries (atlas-classify, atlas-eval,
  atlas-sweep, atlas-github-comments) gain successful help and
  version paths: --help/-h prints the usage text to stdout, exit 0;
  --version/-V prints the version, exit 0. Error paths and exit
  codes are unchanged. atlas-classify's usage text now also states
  its defaults (window-days 90, actor, schema-version 1,
  reviewer-model, --now, max-decisions).

Verification (laptop route; the fleet-build container lacks the
Rust toolchain path for this workspace — the #13159 gap family):
cargo test for atlas-core + atlas-search: 415 passed / 0 failed
across 30 suites; atlas-embed + atlas-proto: 16 passed / 0 failed.
cargo fmt --check clean. Built binaries probed directly: every new
--help/--version surface exits 0 with the expected text, bare/error
invocations keep their old exit codes (2/2/2/1), and
ATLAS_SEARCH_SERVICE_CONFIG alone directed `atlas-search init` to
the env-named path. nix build .#atlas-docs succeeds and the
rendered chapters carry the updated text.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 2 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f58653b2-8848-4e74-9718-15a6c29d930b
Commits

Reviewing files that changed from the base of the PR and between ba7ea99 and 5989457.

Files selected for processing: 18

  • pkgs/atlas-search/book/development/release-and-rollout.md
  • pkgs/atlas-search/book/getting-started/installation.md
  • pkgs/atlas-search/book/reference/atlas-classify.md
  • pkgs/atlas-search/book/reference/atlas-eval.md
  • pkgs/atlas-search/book/reference/atlas-github-comments.md
  • pkgs/atlas-search/book/reference/atlas-search-admin.md
  • pkgs/atlas-search/book/reference/atlas-search.md
  • pkgs/atlas-search/book/reference/atlas-stage.md
  • pkgs/atlas-search/book/reference/atlas-sweep.md
  • pkgs/atlas-search/book/reference/configuration.md
  • pkgs/atlas-search/crates/atlas-core/src/bin/atlas-classify.rs
  • pkgs/atlas-search/crates/atlas-core/src/bin/atlas-eval.rs
  • pkgs/atlas-search/crates/atlas-core/src/bin/atlas-github-comments.rs
  • pkgs/atlas-search/crates/atlas-core/src/bin/atlas-sweep.rs
  • pkgs/atlas-search/crates/atlas-search/src/bin/atlas-stage.rs
  • pkgs/atlas-search/crates/atlas-search/src/main.rs
  • pkgs/atlas-search/crates/atlas-search/src/server.rs
  • pkgs/atlas-search/crates/atlas-search/src/service.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T13:54:05.634970Z 5989457 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 merged commit 7310a95 into main Nov 23, 2026
2 checks passed
@dezren39
dezren39 deleted the lane-xe-13278 branch November 23, 2026 13:51

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5989457afb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +212 to 213
#[arg(long, env = "ATLAS_SEARCH_SERVICE_CONFIG")]
config: Option<PathBuf>,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve the fallback for an empty config environment value

When ATLAS_SEARCH_SERVICE_CONFIG="" is set and no --config flag is supplied, both atlas-search serve and atlas-search init now fail during clap parsing instead of using the default config path. Clap's PathBuf parser checks value.is_empty() and returns Error::empty_value, so the new empty-path filter in resolve_service_config_path is never reached. Previously, the resolver explicitly ignored an empty environment value. Use a parser that accepts empty paths or normalize the environment value before clap validation on both config arguments.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Atlas CLI help vs source: ten disagreements in the atlas-search/atlas-stage/atlas-classify help surfaces (book survey, #13251)

1 participant